<jsp:useBean id="task" scope="session"
    class="com.knife.service.GenerateSiteTask"/>
<% task.setRunning(false); %>